import React from "react";
import ctx from "./setVar/ctx";
import SwitchTimer from "./SwitchTimer";

export default function SwitchTimerButton() {
    let { vars, setVar } = React.useContext(ctx);
    return (
        <button onClick={() => SwitchTimer(vars, setVar)}>切换刷新时间</button>
    )
}